import { Base } from '../../../utils/base.js';
class HomeIndex extends Base {
  constructor() {
    super();
  }

  //获取领取好友邀请优惠券后的页面
  get_friend(data, callback){
    var param = {
      url: 'user/get_friend',
      type: "post",
      data: data,
      loading: 'hide',
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(param);
  }

  //邀请好友页面的视频
  config(callback){
    var param = {
      url: 'common/config',
      type: "post",
      data: {},
      loading: 'hide',
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(param);
  }

  getback(data, callback) {  //是否领取优惠券
    var param = {
      url:'user/top_friend',
      type: "post",
      data: data,
      loading: 'hide',
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(param);
  }


  baibai(data, callback){   //立即领取
    var param = {
      url:'user/friend_success',
      type: "post",
      data: data,
      loading: 'hide',
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(param);
   
  }
};
export { HomeIndex };